1 using System.Collections;
2 using
System.Collections.Generic;
3 using
UnityEngine;
4 using
UnityEngine.UI;
5
6 public
class ScoreManager : MonoBehaviour {
7
8     
public static int score;
9     
private Text text;
10
11     
void Awake () {
12         text = GetComponent<Text> ();
13         score =
0;
14     }
15     
16     
// Update is called once per frame
17     
void Update () {
18         text.text =
"Score: " + score;
19     }
20 }


Gõ tìm kiếm nhanh...